package com.partsoft.dits.mq;

/**
 * MQ池管理器
 */
public interface MQPoolManager extends MQPoolProvider {

	/**
	 * 添加MQ池
	 * @param descriptor
	 * @return
	 */
	MQQMObjectPool addMQPool(MQPoolDescriptor descriptor);
	
	MQQMObjectPool addMQPool(String hostName, int port, String channelName, String qmName);
	
	/**
	 * 添加本地QM池
	 * @param qmName
	 * @return
	 */
	MQQMObjectPool addMQPool(String qmName);
	
	void removeMQPool(MQPoolDescriptor descriptor);
	
	/**
	 * 移除本地QM池
	 * @param qmName
	 */
	void removeMQPool(String qmName);
	
	void removeMQPool(String hostName, int port, String channelName, String qmName);
	
}
